Revert "label: Never measure more than max-width-chars"
authorBenjamin Otte <otte@redhat.com>
Thu, 4 Nov 2021 12:28:45 +0000 (13:28 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 5 Nov 2021 05:12:33 +0000 (06:12 +0100)
commit53acff167b2ccb60203b9de0e436be8dfa9f570d
tree39c42161a30ddd0a70e9352b7a9217287e413f73
parent8c632448553101f0961ae2373c5b205ce1f39fa6
Revert "label: Never measure more than max-width-chars"

This reverts commit ba44e7a228534ff066694ad97d25eaa23ec5f3af.

The change was meant to revert to old GTK3 behavior but it actually
broke new GTK4 behavior that is in use where max-width-chars is used to
determine an ideal size, but where we don't want to limit the width to
that size.

So what happens is the reintroduction of GTK3-style lots of whitepsace
bugs, and we really don't want those.

We also don't want to break backwards compat if we can avoid it.

So let's revert this.

The reftest that was made for this purpose has been adapted.

Fixes #4399
gtk/gtklabel.c
testsuite/reftests/label-max-width-chars-and-halign-and-infinite-width.ref.ui